/*
 * @Author: 张久冬
 * @Date: 2021-12-21 16:36:55
 * @
# Description:
 */
export const rules = {
  name: [
    {
      required: true,
      message: '请输入用户名',
      trigger: 'blur'
    },
    {
      pattern: /^[a-z0-9]{1,}$/,
      message: '用户名为1个以上字母或者数字'
    }
  ],
  password: [
    {
      required: true,
      message: '请输入密码',
      trigger: 'blur'
    },
    {
      pattern: /^[a-z0-9]{1,}$/,
      message: '密码为1个以上字母或者数字'
    }
  ]
}
